/**
 * 
 */
package com.pine.sunshineelder.common.converter;

import org.springframework.core.convert.converter.Converter;

/**
 * @author 苟瑞雪
 *去掉空格
 */
public class StringConverter implements Converter<String, String>{

	@Override
	public String convert(String target) {

		if (target == null || (target = target.trim()).length() == 0) {
			return null;
		}
		return target;
	}

}
